import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import UI from './components/index'
import YMessage from './components/YMessage'
import Hooks from '@/hooks/index'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import 'element-plus/dist/index.css'
import 'ekt-editorv2/lib/index.css'
const app = createApp(App)
app.config.globalProperties.$YMessage = YMessage
app.use(UI).use(Hooks).use(ElementPlus).mount('#app')
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
